﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000AF3 RID: 2803
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MaterialSubmitInfo : IMessage<MaterialSubmitInfo>, IMessage, IEquatable<MaterialSubmitInfo>, IDeepCloneable<MaterialSubmitInfo>, IBufferMessage
	{
		// Token: 0x17002362 RID: 9058
		// (get) Token: 0x06007D79 RID: 32121 RVA: 0x0014ED2B File Offset: 0x0014CF2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MaterialSubmitInfo> Parser
		{
			get
			{
				return MaterialSubmitInfo._parser;
			}
		}

		// Token: 0x17002363 RID: 9059
		// (get) Token: 0x06007D7A RID: 32122 RVA: 0x0014ED32 File Offset: 0x0014CF32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MaterialSubmitInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002364 RID: 9060
		// (get) Token: 0x06007D7B RID: 32123 RVA: 0x0014ED44 File Offset: 0x0014CF44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MaterialSubmitInfo.Descriptor;
			}
		}

		// Token: 0x06007D7C RID: 32124 RVA: 0x0014ED4B File Offset: 0x0014CF4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MaterialSubmitInfo()
		{
		}

		// Token: 0x06007D7D RID: 32125 RVA: 0x0014ED54 File Offset: 0x0014CF54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MaterialSubmitInfo(MaterialSubmitInfo other) : this()
		{
			this.completed_ = other.completed_;
			this.belobogShopId_ = other.belobogShopId_;
			this.isFirstRewardTaken_ = other.isFirstRewardTaken_;
			this.panelId_ = other.panelId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007D7E RID: 32126 RVA: 0x0014EDA8 File Offset: 0x0014CFA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MaterialSubmitInfo Clone()
		{
			return new MaterialSubmitInfo(this);
		}

		// Token: 0x17002365 RID: 9061
		// (get) Token: 0x06007D7F RID: 32127 RVA: 0x0014EDB0 File Offset: 0x0014CFB0
		// (set) Token: 0x06007D80 RID: 32128 RVA: 0x0014EDB8 File Offset: 0x0014CFB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Completed
		{
			get
			{
				return this.completed_;
			}
			set
			{
				this.completed_ = value;
			}
		}

		// Token: 0x17002366 RID: 9062
		// (get) Token: 0x06007D81 RID: 32129 RVA: 0x0014EDC1 File Offset: 0x0014CFC1
		// (set) Token: 0x06007D82 RID: 32130 RVA: 0x0014EDC9 File Offset: 0x0014CFC9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BelobogShopId
		{
			get
			{
				return this.belobogShopId_;
			}
			set
			{
				this.belobogShopId_ = value;
			}
		}

		// Token: 0x17002367 RID: 9063
		// (get) Token: 0x06007D83 RID: 32131 RVA: 0x0014EDD2 File Offset: 0x0014CFD2
		// (set) Token: 0x06007D84 RID: 32132 RVA: 0x0014EDDA File Offset: 0x0014CFDA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsFirstRewardTaken
		{
			get
			{
				return this.isFirstRewardTaken_;
			}
			set
			{
				this.isFirstRewardTaken_ = value;
			}
		}

		// Token: 0x17002368 RID: 9064
		// (get) Token: 0x06007D85 RID: 32133 RVA: 0x0014EDE3 File Offset: 0x0014CFE3
		// (set) Token: 0x06007D86 RID: 32134 RVA: 0x0014EDEB File Offset: 0x0014CFEB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PanelId
		{
			get
			{
				return this.panelId_;
			}
			set
			{
				this.panelId_ = value;
			}
		}

		// Token: 0x06007D87 RID: 32135 RVA: 0x0014EDF4 File Offset: 0x0014CFF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MaterialSubmitInfo);
		}

		// Token: 0x06007D88 RID: 32136 RVA: 0x0014EE04 File Offset: 0x0014D004
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MaterialSubmitInfo other)
		{
			return other != null && (other == this || (this.Completed == other.Completed && this.BelobogShopId == other.BelobogShopId && this.IsFirstRewardTaken == other.IsFirstRewardTaken && this.PanelId == other.PanelId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007D89 RID: 32137 RVA: 0x0014EE70 File Offset: 0x0014D070
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Completed)
			{
				num ^= this.Completed.GetHashCode();
			}
			if (this.BelobogShopId != 0U)
			{
				num ^= this.BelobogShopId.GetHashCode();
			}
			if (this.IsFirstRewardTaken)
			{
				num ^= this.IsFirstRewardTaken.GetHashCode();
			}
			if (this.PanelId != 0U)
			{
				num ^= this.PanelId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007D8A RID: 32138 RVA: 0x0014EEFA File Offset: 0x0014D0FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007D8B RID: 32139 RVA: 0x0014EF02 File Offset: 0x0014D102
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007D8C RID: 32140 RVA: 0x0014EF0C File Offset: 0x0014D10C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BelobogShopId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.BelobogShopId);
			}
			if (this.Completed)
			{
				output.WriteRawTag(40);
				output.WriteBool(this.Completed);
			}
			if (this.IsFirstRewardTaken)
			{
				output.WriteRawTag(48);
				output.WriteBool(this.IsFirstRewardTaken);
			}
			if (this.PanelId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.PanelId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007D8D RID: 32141 RVA: 0x0014EFA0 File Offset: 0x0014D1A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Completed)
			{
				num += 2;
			}
			if (this.BelobogShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BelobogShopId);
			}
			if (this.IsFirstRewardTaken)
			{
				num += 2;
			}
			if (this.PanelId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PanelId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007D8E RID: 32142 RVA: 0x0014F010 File Offset: 0x0014D210
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MaterialSubmitInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Completed)
			{
				this.Completed = other.Completed;
			}
			if (other.BelobogShopId != 0U)
			{
				this.BelobogShopId = other.BelobogShopId;
			}
			if (other.IsFirstRewardTaken)
			{
				this.IsFirstRewardTaken = other.IsFirstRewardTaken;
			}
			if (other.PanelId != 0U)
			{
				this.PanelId = other.PanelId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007D8F RID: 32143 RVA: 0x0014F088 File Offset: 0x0014D288
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007D90 RID: 32144 RVA: 0x0014F094 File Offset: 0x0014D294
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 32U)
					{
						this.BelobogShopId = input.ReadUInt32();
						continue;
					}
					if (num == 40U)
					{
						this.Completed = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 48U)
					{
						this.IsFirstRewardTaken = input.ReadBool();
						continue;
					}
					if (num == 104U)
					{
						this.PanelId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002FEC RID: 12268
		private static readonly MessageParser<MaterialSubmitInfo> _parser = new MessageParser<MaterialSubmitInfo>(() => new MaterialSubmitInfo());

		// Token: 0x04002FED RID: 12269
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002FEE RID: 12270
		public const int CompletedFieldNumber = 5;

		// Token: 0x04002FEF RID: 12271
		private bool completed_;

		// Token: 0x04002FF0 RID: 12272
		public const int BelobogShopIdFieldNumber = 4;

		// Token: 0x04002FF1 RID: 12273
		private uint belobogShopId_;

		// Token: 0x04002FF2 RID: 12274
		public const int IsFirstRewardTakenFieldNumber = 6;

		// Token: 0x04002FF3 RID: 12275
		private bool isFirstRewardTaken_;

		// Token: 0x04002FF4 RID: 12276
		public const int PanelIdFieldNumber = 13;

		// Token: 0x04002FF5 RID: 12277
		private uint panelId_;
	}
}
